package com.yjd.bi.fund.service;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.bi.fund.model.PfBalanceModel;

import java.util.Map;

/**
 * <b>description</b>：提现记录业务接口<br>
 * <b>time</b>：2018-09-10 10:51:03 <br>
 * <b>author</b>：  weili valie.lin@foxmail.com
 */
public interface IPfBalanceService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public PfBalanceModel insert(PfBalanceModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(PfBalanceModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(long id) throws Exception;
	/**
	 * 包含借款人的余额
	 *
	 * @param cur_date
	 * @return
	 */
	double getfundsSumAllAvailable(Long cur_date) throws Exception;

	/**
	 * 不包含借款人余额
	 *
	 * @param cur_date
	 * @return
	 */
	double getfundsSumAvailable(Long cur_date) throws Exception;
}
